#ifndef __SPI_H_
#define __SPI_H_

#include <stdint.h>

/* SPI 总线速度设置 */
#define SPI_SPEED_2         0
#define SPI_SPEED_4         1
#define SPI_SPEED_8         2
#define SPI_SPEED_16        3
#define SPI_SPEED_32        4
#define SPI_SPEED_64        5
#define SPI_SPEED_128       6
#define SPI_SPEED_256       7

uint8_t spi5ReadWriteByte(uint8_t txdata);
void spi5SetSpeed(uint8_t speed);
void spi5Init(void);

#endif
